#ifndef __WOE_SERVICE_IMP_DB___
#define __WOE_SERVICE_IMP_DB___

#include "Service/ServiceImp.h"
#include "ServiceDataSMS.h"
#include "Entity/EntityManagerIf.h"
#include "Database/CacheMsgHandler.h"
#include "Database/DBMessageHandler.h"
//
//	Database Service
//
//
class ServiceImpDB : public ServiceImp
{
public:
	ServiceImpDB();

	virtual void init(ServiceData& data);

protected:
	virtual void onStart();
	virtual void onStop();

	//
	//	callbacks
	//
	virtual void onTimer();
	virtual void onDispatchMsg(IMsg* pMsg);
protected:

	Service*	m_wpSvcLgc;

	CacheMsgHandler	m_CacheMsgHandler;
	DBMessageHandler m_PersistMsgHandler;


	//
	//	configurations from properties file
	//
	MsgHandlerInitDataDB	m_initData;
};

#endif

